﻿<UserControl x:Class="EarthWatchers.SL.GUI.Controls.HexagonInfo"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:controls="clr-namespace:EarthWatchers.SL.GUI.Controls" mc:Ignorable="d" Height="183" Visibility="Collapsed" Width="274" VerticalAlignment="Top" HorizontalAlignment="Left">   
    <Grid x:Name="LayoutRoot" RenderTransformOrigin="0.5,0.5">
        <Grid.RenderTransform>
            <CompositeTransform/>
        </Grid.RenderTransform>
        <Grid Margin="0" VerticalAlignment="Top" Height="128">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="0*" />
            </Grid.RowDefinitions>
            <Border BorderBrush="#FF686868" BorderThickness="1" Margin="-2" Grid.RowSpan="2" Padding="10" >
            	<Border.Background>
            		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            			<GradientStop Color="#FFE2E2E2" Offset="0"/>
            			<GradientStop Color="#FFE2E2E2" Offset="0.866"/>
            			<GradientStop Color="#FFCACACA" Offset="0.164"/>
            		</LinearGradientBrush>
            	</Border.Background>
            </Border>
            <Path Data="M168.33885,129.52629 L112.5631,207.77623 L202.69971,129.52629" Fill="#FFE2E2E2" Margin="110.458,0,92.082,-50.96" Stretch="Fill" Stroke="#FF686868" UseLayoutRounding="False" RenderTransformOrigin="0.5,0.5" Grid.Row="1" Height="50.46" VerticalAlignment="Bottom"/>
            <controls:TiledBackground SourceUri="/EarthWatchers.SL;component/Resources/Images/backgroundtexture.png" Opacity="0.85" Grid.RowSpan="2" Visibility="Collapsed" />
            <Grid Margin="4">
            	<Grid Margin="0">
            		<Grid HorizontalAlignment="Left" Height="49" VerticalAlignment="Top" Width="49" Background="#FF9FB50B" Margin="3">
            			<Image x:Name="avatar" Stretch="Fill" Margin="2"/>
            		</Grid>
            	</Grid>

            	<StackPanel Margin="65,4,0,11" d:LayoutOverrides="Width">
            		<StackPanel Orientation="Horizontal">
            			<Image x:Name="flag" Stretch="Fill" Height="15" Width="23" />
            			<TextBlock x:Name="txtCountry" Margin="5,0,0,0" TextWrapping="Wrap" VerticalAlignment="Center" Foreground="Black" d:LayoutOverrides="Width"/>
            		</StackPanel>
                    <TextBlock x:Name="txtName" Cursor="Hand" MouseLeftButtonDown="TxtNameMouseLeftButtonDown" TextDecorations="Underline" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" Margin="0,3,0,2" HorizontalAlignment="Left"/>
            		<TextBlock x:Name="txtStatus" TextWrapping="Wrap" VerticalAlignment="Top" HorizontalAlignment="Left" Foreground="Black" Margin="0,2,0,2"/>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock x:Name="txtConfirmed" TextWrapping="Wrap" VerticalAlignment="Top" HorizontalAlignment="Left" Foreground="Black" Margin="0,2,0,0"/>
            		    <TextBlock x:Name="txtDeconfirmed" TextWrapping="Wrap" VerticalAlignment="Top" HorizontalAlignment="Left" Foreground="Black" Margin="5,2,0,0"/>
                    </StackPanel>
                    <StackPanel x:Name="statusChanger" Orientation="Horizontal" Margin="0,2,0,0" >                
            			<ComboBox x:Name="cbSetStatus" Height="25" Margin="0,0,8,2" SelectedIndex="0" Foreground="Black" Width="125" FontSize="10.667" >
            				<TextBlock Text="Not Checked" Tag="2" Foreground="Black" Margin="0,0,11,0"/>
            				<TextBlock Text="Land is OK" Tag="3" Foreground="Black" />
            				<TextBlock Text="Alert" Tag="4" Foreground="Black"/>
            			</ComboBox>
            			<Button x:Name="btnSetStatus" Click="BtnSetClick" Content="set" FontSize="10.667" Height="25" Margin="0,2" Width="52" />
            		</StackPanel>
                    <StackPanel x:Name="confirmation" Visibility="Collapsed" Orientation="Horizontal" Margin="0,2,0,0" >
                        <ComboBox x:Name="cbConfirmation" Height="25" Margin="0,2,8,2" SelectedIndex="0" Foreground="Black" Width="125" FontSize="10.667" >
                            <TextBlock Text="Confirm" Tag="2" Foreground="Black" Margin="0,0,11,0"/>
                            <TextBlock Text="Deconfirm" Tag="3" Foreground="Black" />
                        </ComboBox>
                        <Button x:Name="btnSetConfirm" Click="BtnSetConfirmClick" Content="set" FontSize="10.667" Height="25" Margin="0,2" Width="52" />
                    </StackPanel>
                </StackPanel>
                <StackPanel Margin="4,56,0,0" Orientation="Horizontal">
            	    <Button x:Name="btnFacebook" Style="{StaticResource ImageButton}" Click="BtnFacebookClick" ToolTipService.ToolTip="Share on Facebook" HorizontalAlignment="Left" VerticalAlignment="Top" Height="15" Width="15">
                        <Image Source="/EarthWatchers.SL;component/Resources/Images/fb.png" Stretch="Fill" ToolTipService.ToolTip="" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
            	    </Button>
                    <Button x:Name="btnTwitter" Margin="3,0,0,0" Click="BtnTwitterClick" Style="{StaticResource ImageButton}" ToolTipService.ToolTip="Share on Facebook" HorizontalAlignment="Left" VerticalAlignment="Top" Height="16" Width="16">
                        <Image Source="/EarthWatchers.SL;component/Resources/Images/twitter.png" Stretch="Fill" ToolTipService.ToolTip="" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
                    </Button>
                </StackPanel>
                <Grid x:Name="unassignedGrid" Background="#FFE2E2E2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" d:IsHidden="True">
            		<TextBlock Text="This land is not assigned to a person" Foreground="Black" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold" />
            	</Grid>
            	<StackPanel HorizontalAlignment="Left" Margin="1,0,0,-3" Orientation="Horizontal" VerticalAlignment="Bottom" Width="83" Height="14">
            		<Button x:Name="btnComments" Click="TxtCommentsClick" Style="{StaticResource ImageButton}" ToolTipService.ToolTip="Comments" VerticalAlignment="Top" Height="17" Width="17" HorizontalAlignment="Left">
            			<Image Source="/EarthWatchers.SL;component/Resources/Images/comments.png" Stretch="Fill"/>
            		</Button>
            		<HyperlinkButton Click="TxtCommentsClick" x:Name="txtComments" Content="" FontWeight="Bold" d:LayoutOverrides="Width" />
            	</StackPanel>
            </Grid>
            <Button x:Name="btnClose" Margin="0,-4,-3,0" Style="{StaticResource ImageButton}" ToolTipService.ToolTip="Hide info" HorizontalAlignment="Right" VerticalAlignment="Top">
                <Image x:Name="img" MouseLeftButtonDown="BtnCloseMouseLeftButtonDown" Height="27" Source="/EarthWatchers.SL;component/Resources/Images/delete.png" Stretch="Fill" Width="27" />
            </Button>
        </Grid>
    </Grid>
</UserControl>
